package com.tcm.logistics.service;

import com.tcm.logistics.entity.LogisticsFreightProviso;

import java.util.List;

public interface LogisticsFreightProvisoService {
    /**
     * 免运费条件
     * @param freightId
     * @return
     */
    List<LogisticsFreightProviso> listProviso(Long freightId);

    /**
     * 新增免运费条件
     * @param proviso
     */
    void create(LogisticsFreightProviso proviso);

    /**
     * 更新免运费条件
     * @param proviso
     */
    void update(LogisticsFreightProviso proviso);

    /**
     * 逻辑删除
     * @param id
     * @return
     */
    int deleteLogicById(Long id);

    /**
     * 删除
     * @param Id
     * @return
     */
    int deleteById(Long Id);

    /**
     * 删除免运费条件
     * @param freightId
     * @return
     */
    int deleteByFreight(Long freightId);

    /**
     * 逻辑删除免运费条件
     * @param freightId
     * @return
     */
    int deleteLogicByFreight(Long freightId);
}
